export interface CreatePurchaseOrderDto {
  supplierId: string;
  branchId?: string;
  total: number;
  items: CreatePurchaseOrderDto.PurchaseItem[];
  paymentItems: CreatePurchaseOrderDto.PaymentItem[];
}

export namespace CreatePurchaseOrderDto {
  export interface PurchaseItem {
    variantId: string;
    originPrice: number;
    unitPrice: number;
    quantity: number;
    snNames: string[];
  }

  export interface PaymentItem {
    method: string;
    amount: number;
  }
}
